
<?php include_once(dirname(__FILE__) . '/../general/head.php'); ?>

<!-- header -->
<?php include_once(dirname(__FILE__) . '/../general/header.php'); ?>

<?php include_once('left.php'); ?>


<div id="page-wrapper">

    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Thay đổi tiêu chí đánh giá</h1>
        </div>
    </div>
    
    <?php
    if($editResult){
    ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-success">
                <div class="panel-heading">
                    <?php echo $editResult; ?>
                </div>
            </div>
        </div>
    </div>
    <?php } ?>

    <div class="panel panel-default">
        <div class="panel-heading">
            Thông tin tiêu chí
        </div>
        <div class="panel-body">
            <form method="post" action="<?php echo site_url(get_folder($loggedUser['title']).'/attitude_criterias/edit/'.$attitudeCriteria['id']); ?>">
                <input type="hidden" name="Command" value="Edit" />
                <div class="row">
                    <!--Cột trái-->
                    <div class="col-lg-6">
                        <div class="form-group">
                            <label>Tên tiêu chí</label>
                            <input type="text" name="name" class="form-control" value="<?php echo $attitudeCriteria['name']; ?>" />
                        </div>
                        <?php $scores = explode(',', $attitudeCriteria['score']) ?>
                        <div class="form-group">
                            <label>Điểm cao nhất</label>
                            <input type="text" name="d1" class="form-control normal-width" value="<?php echo $scores[0] ?>" />
                        </div>
                        <div class="form-group">
                            <label>Điểm trung bình</label>
                            <input type="text" name="d2" class="form-control normal-width" value="<?php echo $scores[1] ?>" />
                        </div>
                        <div class="form-group">
                            <label>Điểm thấp</label>
                            <input type="text" name="d3" class="form-control normal-width" value="<?php echo $scores[2] ?>" />
                        </div>
                        <div class="form-group">
                            <input class="btn btn-primary" type="submit" value="Lưu thay đổi"> </td></tr>
                        </div>
                    </div>
                </div>
            </form>

        </div>
    </div>
    <br>

</div>
<!-- /#page-wrapper -->


<?php include_once(dirname(__FILE__) . '/../general/footer.php'); ?>